﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace czj_shop.Models
{
    public class LoginRequest
    {
        /// <summary>
        /// 手机号码
        /// </summary>
        [StringLength(maximumLength: 11, MinimumLength = 11, ErrorMessage = "请输入正确手机号码")]
        public string Mobile { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [StringLength(maximumLength: 30, MinimumLength = 6, ErrorMessage = "请输入正确密码")]
        public string Password { get; set; }
    }

}
